package com.yuanqi.controller;

import com.yuanqi.feign.TestFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class TestController {

    @Autowired
    TestFeignService testFeignService;

    @RequestMapping("/add/{id}")
    public String add(@PathVariable("id") Integer id){
        String useradd = testFeignService.useradd(id);
        return useradd;
    }
}
